package com.zhouxiao.multithreading.runningcallback;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-03-13 10:14
 */

public class LetOneStop implements Calltoback {

    private Animal animal;

    public LetOneStop(Animal animal) {
        this.animal = animal;
    }

    @Override
    public void win() {
        animal.flag = false;
    }
}
